<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name=viewport content="with=device-width,initial-scale=1.0">
<link href="../resource/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link href="../resource/css/basic.css" rel="stylesheet">
<script src="../resource/js/jquery.min.js"></script>
<script src="../resource/bootstrap/js/bootstrap.min.js"></script>
<script src="../resource/js/exam.js"></script>
<script src="../resource/js/user.js"></script>
<script type="text/javascript">
$(function() {
	$('#search').click(searchExam);
	$('#putExam').click(putExam);
	$('#btnLogout').click(logout);
});
</script>
<title>考试发布</title>
</head>
<body>
	<nav class="navbar navbar-fixed-top navbar-primary" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<img class="img-responsive" src="../resource/image/header3.png" />
			</div>
			<ul class="user nav navbar-nav navbar-right">
				<li><a href="#">欢迎您， <img class="img-circle"
						style="height: 18px" src="${teacher.logo }" /> ${teacher.petName}
				</a></li>
				<li><a href="#"><i class="glyphicon glyphicon-comment"></i>
						我 的 消 息</a></li>
				<li><a id="btnLogout" href="#" data-roles="teacher"><i
						class="glyphicon glyphicon-off"></i> 退 出 登 录</a></li>
			</ul>
		</div>
	</nav>
	<div>
		<div class="col-sm-2">
			<div class="row panel panel-default">
				<div class="panel-body">
					<div class="row panel panel-default">
						<div class="panel-body">
							<div class="list-group">
								<a class="list-group-item" href="../teacher"><i
									class="glyphicon glyphicon-user"></i> 首页导航</a>
							</div>
							<div class="list-group">
								<a class="list-group-item" href="studentInfo"><i
									class="glyphicon glyphicon-user"></i> 学生管理</a>
							</div>
							<div class="list-group">
								<a class="list-group-item" href="lessonInfo"><i
									class="glyphicon glyphicon-book"></i> 课程管理 <span class="badge">2</span></a>
								<a class="list-group-item" href="publishLesson"><i
									class="glyphicon glyphicon-edit"></i> 课程发布</a> <a
									class="list-group-item" href="publishLessonContent"><i
									class="glyphicon glyphicon-edit"></i> 课题发布</a>
							</div>
							<div class="list-group">
								<a class="list-group-item active" href="resourceUpload"><i
									class="glyphicon glyphicon-cloud-upload"></i> 资料上传</a>
							</div>
							<div class="list-group">
								<a class="list-group-item" href="publishExam"><i
									class="glyphicon glyphicon-dashboard"></i> 考试发布</a>
							</div>
							<div class="list-group">
								<a class="list-group-item" href="#"><i
									class="glyphicon glyphicon-tag"></i> 题库管理 <span class="badge">1</span></a>
								<a class="list-group-item" href="#"><i
									class="glyphicon glyphicon-pencil"></i> 添加答题</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="col-sm-10">
			<div class="row panel panel-default">
				<div class="panel-heading">
					<ol class="breadcrumb">
						<li><a href="../teacher"><i
								class="glyphicon glyphicon-home"></i> 首页</a></li>
						<li class="active"><i class="glyphicon glyphicon-dashboard"></i>
							考试发布</li>
					</ol>
				</div>
				<div class="panel-body" id="lessonType">
					<!-- 试卷信息 -->
					<div class="row form-inline">
						<div class="col-md-4">
							<label >选择课程: </label>
							<select class="form-control" name="lessons">
								<c:forEach items="${lessons}" var="les">
									<option value="${les.id }">${les.title}</option>
								</c:forEach>
							</select>
						</div>
						<div class="col-md-4">
							<label >试卷名称:</label>
							<input class="form-control" type="text" id="examTitle" value=""/>
						</div>
						<div class="col-md-4">
							<label >考试时间:</label>
							<input class="form-control" type="text" id="examTime" value=""  placeholder="分钟"/>
						</div>
					</div>
					<!-- 查询试题 -->
					<div class="row form-inline">
						<div class="col-md-4">
							<label >专业题库: </label>
							<select class="form-control" name="lessonTwoType">
								<c:forEach items="${lessonTwoTypes}" var="ll">
									<option value="${ll.id }">${ll.typeName}</option>
								</c:forEach>
							</select> 
						</div>
						<div class="col-md-2">
							<label >试题类型: </label>
							<select class="form-control" name="dicType">
								<c:forEach items="${dicTypes}" var="dic">
									<option value="${dic.id }">${dic.name}</option>
								</c:forEach>
							</select>
						</div>
						<div class="col-md-2">
							<button type="button" class="btn btn-default" id="search" >查询</button>
						</div>
					</div>
					<table id="examList"
							class="table table-striped table-bordered table-hover">
					</table>
				</div>
			</div>
		</div>
	</div>
	<footer class="footer navbar-fixed-bottom " style="background-color: #D9EDF7">
	    <div class="container-fluid">
	    	<div class="row">
	    		<div class="col-md-4 col-md-offset-5">
	    			已选择<span id="examcount">0</span>道题
	    		</div>
	    		<div class="col-md-3 ">
	    			<button type="button" class="btn btn-default"  id='putExam'>发布</button>
	    		</div>
	    	</div>
	    </div>
	</footer>
</body>
</html>